package com.mrobuy.jdvc.service.impl;

import com.mrobuy.jdvc.dao.TaskDao;
import com.mrobuy.jdvc.entity.Task;
import com.mrobuy.jdvc.service.ItemService;
import com.mrobuy.jdvc.service.TaskService;
import com.mrobuy.util.Pagination;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("taskService")
public class TaskServiceImpl implements TaskService {


    private static Logger LOG = LoggerFactory.getLogger(ItemService.class);

    @Autowired
    private TaskDao itemDao;

    @Override
    public Pagination load(int start, int length, Task condition) {

        return itemDao.load(start, length, condition);

    }
}
